package com.slfx.demo;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class JedisLockDemo {

    public static void main(String[] args) {

        JedisPool jedisPool =new JedisPool("192.168.200.150",6379);

        Jedis jedis = jedisPool.getResource();

        String set = jedis.set("123", "123", "NX", "PX", 30000);

        System.out.println(set);
    }
}
